Skip to content

Commit 7285893

Browse files
committed
refactor: remove restrict and repost
1 parent 31f7bed commit 7285893

14 files changed

Lines changed: 13 additions & 947 deletions

File tree

apps/yuudachi/locales/en-US/translation.json

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -225,58 +225,6 @@
225225
}
226226
}
227227
},
228-
"restrict": {
229-
"embed": {
230-
"errors": {
231-
"no_role": "No role for embed restrictions has been configured.",
232-
"missing_permissions": "Missing permissions to embed restrict {{- user}}",
233-
"already_restricted": "{{- user}} is already embed restricted."
234-
},
235-
"pending": "Do you really want to embed restrict {{- user}}?",
236-
"buttons": {
237-
"execute": "Restrict"
238-
},
239-
"cancel": "Canceled embed restriction on {{- user}}",
240-
"success": "Successfully embed restricted {{- user}}"
241-
},
242-
"react": {
243-
"errors": {
244-
"no_role": "No role for reaction restrictions has been configured.",
245-
"missing_permissions": "Missing permissions to react restrict {{- user}}",
246-
"already_restricted": "{{- user}} is already reaction restricted."
247-
},
248-
"pending": "Do you really want to react restrict {{- user}}?",
249-
"buttons": {
250-
"execute": "Restrict"
251-
},
252-
"cancel": "Canceled react restriction on {{- user}}",
253-
"success": "Successfully react restricted {{- user}}"
254-
},
255-
"emoji": {
256-
"errors": {
257-
"no_role": "No role for emoji restrictions has been configured.",
258-
"missing_permissions": "Missing permissions to emoji restrict {{- user}}",
259-
"already_restricted": "{{- user}} is already emoji restricted."
260-
},
261-
"pending": "Do you really want to emoji restrict {{- user}}?",
262-
"buttons": {
263-
"execute": "Restrict"
264-
},
265-
"cancel": "Canceled emoji restriction on {{- user}}",
266-
"success": "Successfully emoji restricted {{- user}}"
267-
},
268-
"unrole": {
269-
"errors": {
270-
"missing_permissions": "Missing permissions to unrole `#{{case}}`"
271-
},
272-
"pending": "Do you really want to unrole {{- user}} from `{{- role}}` with case {{- case}}?",
273-
"buttons": {
274-
"execute": "Unrole"
275-
},
276-
"cancel": "Canceled unrole on {{- user}} from `{{- role}}` on case {{- case}}",
277-
"success": "Successfully unroled {{- user}} from `{{- role}}` with case {{- case}}"
278-
}
279-
},
280228
"lockdown": {
281229
"lock": {
282230
"errors": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @param {import('postgres').Sql} sql
3+
*/
4+
export async function up(sql) {
5+
await sql.unsafe(`
6+
alter table guild_settings
7+
drop embed_role_id,
8+
drop emoji_role_id,
9+
drop reaction_role_id
10+
`);
11+
}

apps/yuudachi/src/commands/moderation/restrict.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

apps/yuudachi/src/commands/moderation/sub/restrict/embed.ts

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)