Skip to content

Commit

Permalink
chore(util): permission string update
Browse files Browse the repository at this point in the history
  • Loading branch information
gx1285 committed Aug 17, 2024
1 parent ee6dce2 commit 03bfa24
Showing 1 changed file with 3 additions and 45 deletions.
48 changes: 3 additions & 45 deletions packages/bot/src/lib/util/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,52 +49,10 @@ export const translatePermission = (permissionFlags: PermissionFlags[] | Permiss
ModerateMembers: 'メンバーをタイムアウト',
ViewCreatorMonetizationAnalytics: 'ロールサブスクリプションのインサイトを見る',
UseSoundboard: 'サウンドボードを使用',
CreateGuildExpressions: 'エクスプレッションを作成',
CreateEvents: 'ボイスチャンネルステータスを設定',
UseExternalSounds: '外部のサウンドの使用',
SendVoiceMessages: 'ボイスメッセージを送信',
'1': '招待を作成',
'2': 'メンバーをキック',
'4': 'メンバーをBan',
'8': '管理者',
'16': 'チャンネルの管理',
'32': 'サーバー管理',
'64': 'リアクションの追加',
'128': '監査ログを表示',
'256': '優先スピーカー',
'512': 'WEB カメラ',
'1024': 'チャンネルを見る',
'2048': 'メッセージを送信',
'4096': 'テキスト読み上げメッセージを送信する',
'8192': 'メッセージの管理',
'16384': '埋め込みリンク',
'32768': 'ファイルを添付',
'65536': 'メッセージ履歴を読む',
'131072': '@everyone、@here、全てのロールにメンション',
'262144': '外部の絵文字を使用する',
'524288': 'サーバーインサイトを見る',
'1048576': '接続',
'2097152': '発言',
'4194304': 'メンバーをミュート',
'8388608': 'メンバーのスピーカーをミュート',
'16777216': 'メンバーを移動',
'33554432': 'ユーザーアクティビティ',
'67108864': 'ニックネームの変更',
'134217728': 'ニックネームの管理',
'268435456': 'ロールの管理',
'536870912': 'ウェブフックの管理',
'1073741824': '絵文字の管理',
'2147483648': 'アプリコマンドを使う',
'4294967296': 'スピーカー参加をリクエスト',
'8589934592': 'イベントの管理',
'17179869184': 'スレッドの管理',
'34359738368': '公開スレッドの作成',
'68719476736': 'プライベートスレッドの作成',
'137438953472': '外部のスタンプを使用する',
'274877906944': 'スレッドでメッセージを送信',
'549755813888': 'ユーザーアクティビティ',
'1099511627776': 'メンバーをタイムアウト',
'2199023255552': 'ロールサブスクリプションのインサイトを見る',
'4398046511104': 'サウンドボードを使用',
'35184372088832': '外部のサウンドの使用',
'70368744177664': 'ボイスメッセージを送信',
SendPolls: '投票を作成',
})[flag.toString()],
);

0 comments on commit 03bfa24

Please sign in to comment.