mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
Reformat all files with Prettier
This commit is contained in:
parent
0cde0d46d2
commit
ac79eb09f5
206 changed files with 727 additions and 888 deletions
|
@ -65,7 +65,7 @@ export async function applyReactionRoleReactionsToMessage(
|
|||
await sleep(1500);
|
||||
|
||||
// Add reaction role reactions
|
||||
const emojisToAdd = reactionRoles.map(rr => rr.emoji);
|
||||
const emojisToAdd = reactionRoles.map((rr) => rr.emoji);
|
||||
emojisToAdd.push(CLEAR_ROLES_EMOJI);
|
||||
|
||||
for (const rawEmoji of emojisToAdd) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { refreshReactionRoles } from "./refreshReactionRoles";
|
|||
export async function runAutoRefresh(pluginData: GuildPluginData<ReactionRolesPluginType>) {
|
||||
// Refresh reaction roles on all reaction role messages
|
||||
const reactionRoles = await pluginData.state.reactionRoles.all();
|
||||
const idPairs = new Set(reactionRoles.map(r => `${r.channel_id}-${r.message_id}`));
|
||||
const idPairs = new Set(reactionRoles.map((r) => `${r.channel_id}-${r.message_id}`));
|
||||
for (const pair of idPairs) {
|
||||
const [channelId, messageId] = pair.split("-");
|
||||
await refreshReactionRoles(pluginData, channelId, messageId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue