3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

changed almost all references of utils successMessage to this.sendSuccessMessage. Waiting on knub changes to finish this

This commit is contained in:
roflmaoqwerty 2020-01-11 00:39:32 +11:00
parent 3e974e84b3
commit af882627a1
17 changed files with 112 additions and 120 deletions

View file

@ -176,7 +176,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
this.lastReload = Date.now();
if (activeReloads && activeReloads.has(this.guildId)) {
activeReloads.get(this.guildId).createMessage(successMessage("Reloaded!"));
this.sendSuccessMessage(activeReloads.get(this.guildId), "Reloaded!");
activeReloads.delete(this.guildId);
}
}
@ -770,7 +770,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
responseText += ` in <#${targetChannel.id}>\n${cleanResult.archiveUrl}`;
}
responseMsg = await msg.channel.createMessage(successMessage(responseText));
responseMsg = await msg.channel.createMessage(successMessage(`<:zep_check:650361014180904971>`,responseText));
} else {
responseMsg = await msg.channel.createMessage(errorMessage(`Found no messages to clean!`));
}
@ -946,7 +946,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
return;
}
msg.channel.createMessage(successMessage(`The nickname of <@!${args.member.id}> has been reset`));
this.sendSuccessMessage(msg.channel, `The nickname of <@!${args.member.id}> has been reset`);
}
@d.command("nickname", "<member:resolvedMember> <nickname:string$>", {
@ -982,9 +982,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
return;
}
msg.channel.createMessage(
successMessage(`Changed nickname of <@!${args.member.id}> from **${oldNickname}** to **${args.nickname}**`),
);
this.sendSuccessMessage(msg.channel, `Changed nickname of <@!${args.member.id}> from **${oldNickname}** to **${args.nickname}**`);
}
@d.command("server", "", {
@ -1236,9 +1234,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
newChannel: stripObjectToScalars(channel),
});
msg.channel.createMessage(
successMessage(`**${args.member.user.username}#${args.member.user.discriminator}** moved to **${channel.name}**`),
);
this.sendSuccessMessage(msg.channel, `**${args.member.user.username}#${args.member.user.discriminator}** moved to **${channel.name}**`);
}
@d.command("help", "<command:string$>", {