fix: move editThread to helpers plugin

This commit is contained in:
Skillz4Killz
2021-12-03 16:17:39 +00:00
committed by GitHub
parent 7c171faf3c
commit 1464eb0c75
5 changed files with 11 additions and 33 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { assertEquals, assertExists, assertNotEquals, assertThrows } from "../deps.ts";
import { assertEquals, assertExists, assertNotEquals } from "../deps.ts";
import { bot, guild } from "../mod.ts";
Deno.test("[thread] Start a thread", async (t) => {
@@ -34,7 +34,7 @@ Deno.test("[thread] Start a thread", async (t) => {
assertEquals(archived.members.size, 0);
await t.step("[thread] Edit and archive a thread", async () => {
const edited = await bot.helpers.editThread(thread.id, {
const edited = await bot.helpers.editChannel(thread.id, {
archived: true,
name: "new name",
autoArchiveDuration: 1440,