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

Method removeTagRole

src/database/sqlite.ts:224–229  ·  view source on GitHub ↗
(guild: string, role: string)

Source from the content-addressed store, hash-verified

222 }
223
224 async removeTagRole(guild: string, role: string) {
225 const guildDB = await this.getGuild(guild);
226 this.connection
227 .prepare("UPDATE guilds SET tag_roles = ? WHERE guild_id = ?")
228 .run(JSON.stringify(guildDB.tag_roles.filter((v) => v !== role)), guild);
229 }
230
231 async setBroadcast(msg?: string) {
232 this.connection.prepare("UPDATE settings SET broadcast = ? WHERE id = 1").run(msg ?? null);

Callers 1

runMethod · 0.45

Calls 2

getGuildMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected