mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: move editThread to helpers plugin
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user