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

Method addTagRole

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

Source from the content-addressed store, hash-verified

215 }
216
217 async addTagRole(guild: string, role: string) {
218 const guildDB = await this.getGuild(guild);
219 this.connection
220 .prepare("UPDATE guilds SET tag_roles = ? WHERE guild_id = ?")
221 .run(JSON.stringify([...guildDB.tag_roles, role]), guild);
222 }
223
224 async removeTagRole(guild: string, role: string) {
225 const guildDB = await this.getGuild(guild);

Callers 1

runMethod · 0.45

Calls 2

getGuildMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected