
Herkese Merhaba!
Bugünkü rehberimizde DiSky ile menü oluşturup menüyle etkileşime gireceğiz.
Benden size basit bir menü örneği:
Kod:
discord command dropdown:
prefixes: !
trigger:
set {_menü} to new components row
set {_secenekler} to new dropdown with id "menü-1"
set placeholder of {_secenekler} to "%emoji "question"% Hmm, üzerime tıkla da ne varmış görelim."
add new option with value "seçenek-1" named "Seçenek 1" with description "Bu seçenek tam sana göre." with reaction "wave" to options of {_secenekler}
add new option with value "seçenek-2" named "Seçenek 2" with description "En iyi seçenek benim." with reaction "smile" to options of {_secenekler}
add new option with value "seçenek-3" named "Seçenek 3" with description "Sanırım sigarayı bırakmalıyım." with reaction "smoking" to options of {_secenekler}
add new option with value "seçenek-4" named "Seçenek 4" with description "Menemen soğanlı mı olur soğansız mı?" with reaction "onion" to options of {_secenekler}
add new option with value "seçenek-5" named "Seçenek 5" with description "Coca-Cola mı Pepsi mi?" with reaction "wine_glass" to options of {_secenekler}
add {_secenekler} to components of {_menü}
reply with "Bu değişik şey de ne böyle?" with components {_menü}
Şimdi seçeneklere tıklayınca etkileşime girmeyi görelim:
Kod:
on dropdown click:
if event-string is "menü-1":
if selected values is "seçenek-1":
reply with "Seçenek 1'i seçtin!"
if selected values is "seçenek-2":
reply with "Seçenek 2'yi seçtin!"
Bu konumuz da bu kadardı, rehberi takip ediyorsanız yorum yaparak ya da tepki vererek takip ettiğinizi belirtirseniz mutlu olurum..
Son düzenleme: