MCPcopy Create free account
hub / github.com/esmBot/esmBot / disableChannel

Method disableChannel

src/database/sqlite.ts:160–166  ·  view source on GitHub ↗
(channel: string, guild: string)

Source from the content-addressed store, hash-verified

158 }
159
160 async disableChannel(channel: string, guild: string) {
161 const guildDB = await this.getGuild(guild);
162 this.connection
163 .prepare("UPDATE guilds SET disabled = ? WHERE guild_id = ?")
164 .run(JSON.stringify([...guildDB.disabled, channel]), guild);
165 disabledCache.set(guild, [...guildDB.disabled, channel]);
166 }
167
168 async enableChannel(channel: string, guild: string) {
169 const guildDB = await this.getGuild(guild);

Callers 1

runMethod · 0.45

Calls 3

getGuildMethod · 0.95
runMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected