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

Method editTag

src/database/sqlite.ts:211–215  ·  view source on GitHub ↗
(tag: Tag, guild: string)

Source from the content-addressed store, hash-verified

209 }
210
211 async editTag(tag: Tag, guild: string) {
212 this.connection
213 .prepare("UPDATE tags SET content = ?, author = ? WHERE guild_id = ? AND name = ?")
214 .run(tag.content, tag.author, guild, tag.name);
215 }
216
217 async addTagRole(guild: string, role: string) {
218 const guildDB = await this.getGuild(guild);

Callers 1

runMethod · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected