mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
Maybe fix error on ban
This commit is contained in:
@@ -48,8 +48,10 @@ export class BanAction extends Action {
|
||||
this.logger.verbose(`\r\n${banPieces.join('\r\n')}`);
|
||||
if (!dryRun) {
|
||||
// @ts-ignore
|
||||
await item.subreddit.banUser({
|
||||
name: item.author.id,
|
||||
const fetchedSub = await item.subreddit.fetch();
|
||||
const fetchedId = await item.author.id;
|
||||
await fetchedSub.banUser({
|
||||
name: fetchedId,
|
||||
banMessage: renderedContent === undefined ? undefined : renderedContent,
|
||||
banReason: this.reason,
|
||||
banNote: this.note,
|
||||
|
||||
Reference in New Issue
Block a user